package com.start.handler;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;

@Controller
@SessionAttributes(value = {"aaa"})
public class Test2 {
	@RequestMapping("/getTest2Session")
	public String getTest2Session(ModelMap modelMap) {
		Object object = modelMap.get("abc");
		System.out.println("Anno.getTest2Session()-----" + object);
		return "success";
	}

	@RequestMapping("/setTest2Session")
	public String setTest2Session(Model model) {
		model.addAttribute("aaa", "jijijijijij");
		return "success";
	}
}
